<?php
   class Usergroup extends AppModel {
        var $alias  =   'Usergroup';
        var $name = 'Usergroup';
        var $useTable = 'user_aros';

        function paginateCount($conditions = null, $recursive = 0, $extra = array()) {
            $parameters = compact('conditions');
            $this->recursive = $recursive;
            $count = $this->find('count', array_merge($parameters, $extra));
            if (isset($extra['group'])) {
                $count = $this->getAffectedRows();
            }
            return $count;
        }
        function getListAll()
        {
            $data   =   $this->find('list', array(
                'fields'    =>  'Usergroup.id, Usergroup.title',
            ));
            return $data;
        }

    }


?>
